package com.xuecheng.content.controller;

import com.xuecheng.commons.model.dto.BindTeachplanMediaDto;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.content.service.TeachplanMediaService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class TeachplanMediaController {
    @Autowired
    private TeachplanMediaService teachplanMediaService;

    //计划绑定媒资
    @PostMapping("/teachplan/media/association")
    public ResponseResult association(@RequestBody BindTeachplanMediaDto dto){
        return teachplanMediaService.association(dto);
    }



}
